<template>
    <!-- 组件的结构 -->
    <div class="demo">
        <h2>学生姓名：{{studentName}}</h2>
        <h2>学生年龄：{{age}}</h2>
    </div>
</template>

<script>
    export default{
            name:'Student-test',
            data(){
            return {
               studentName:'zsj',
               age:18
            }
            }
            }
</script>

<style>
    /* 组件的样式 */
    .demo{
        color: red;
    }
</style>